Paymate payment gateway

Developed for AC 1.2.3 stable
Date: 19-Sep-2010
 
With this contribution you can use paymate as payment method.

Install instructions:

1. Download the attached file
2. Unzip it
3. Run the included SQL file on your database
4. Upload the files in admin and catalog folders respecting the directory structure. 

5. Open your /catalog/model/model_payment.php file and add:

function get_paymatestatus(){
		$result = $this->database->getRows("select * from zone_to_geo_zone where geo_zone_id = '" . (int)$this->config->get('paymate_geo_zone_id') . "' and country_id = '" . (int)$this->address->getCountryId($this->session->get('payment_address_id')) . "' and (zone_id = '" . (int)$this->address->getZoneId($this->session->get('payment_address_id')) . "' or zone_id = '0')");
		return $result;
	}
	
after

function get_codstatus(){
		$result = $this->database->getRows("select * from zone_to_geo_zone where geo_zone_id = '" . (int)$this->config->get('cod_geo_zone_id') . "' and country_id = '" . (int)$this->address->getCountryId($this->session->get('payment_address_id')) . "' and (zone_id = '" . (int)$this->address->getZoneId($this->session->get('payment_address_id')) . "' or zone_id = '0')");
		return $result;
	}

6. Go to Admin--> Extensions--> Payment
7. To install the modul click on the "+" icon under Action
8. To configure it click on the wrench icon, by default it is disabled.


